package com.example.controller;


import com.example.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author: swq
 * @Date: 2019/8/31  0:44
 */
@RestController
public class UploadController {
    @Autowired
    UploadService uploadService;

    /**
     * 到应用服务器获取标签
     *
     * @return
     */
    @GetMapping("/signature")
    public ResponseEntity<Map<String, String>> signature() {
        return ResponseEntity.ok(uploadService.signature());
    }
}

